package com.oig.sys.security.config;

public class CacheConstants {

    /**
     * oauth 缓存前缀
     */
    public final static String PROJECT_OAUTH_ACCESS = "oauth:access:";

    /**
     * oauth 缓存令牌前缀
     */
    public final static String PROJECT_OAUTH_TOKEN = "oauth:token:";

    /**
     * 用户信息缓存
     */
    public final static String USER_DETAILS = "user_details";

    public final static Integer AccessTokenExpire = 2 * 60 * 60;

    public final static Integer RefreshTokenExpire =7 * 24 * 60 * 60;

    public final static String CLIENT_ID        = "clientId";
    public final static String USER_ID          = "id";
    public final static String USER_CODE        = "code";
    public final static String USER_NAME        = "username";
    public final static String USER_NICK_NAME   = "nickName";
    public final static String USER_REAL_NAME   = "realName";
    public final static String USER_DEF_SYS     = "defaultSysId";
    public final static String USER_DEF_SYS_NAME= "defaultSysName";
    public final static String USER_DEF_SYS_IMGURL = "defaultSysImgUrl";
    public final static String USER_TENANT_ID = "tenantId";
    public final static String USER_TENANT_CODE = "tenantCode";
    public final static String USER_TENANT_NAME = "tenantName";

    public final static String ATTR_USER = "user_info";
    public final static String N_A = "N/A";
}
